import Vue from 'vue'
import Vuex from 'vuex'
import user from '@/store/modules/user'
import goods from '@/store/modules/goods'
import getters from './getters'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    user: user,
    goods: goods
  },
  getters,
  state: {
	  hours: 0,
  },
  mutations: {
	  setHours(state, hours) {
	  	state.hours = hours
	  },
  }
})

export default store
